﻿using DMS.Common.Model.Param;
using SqlSugar.Template.Models;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlSugar.Template.IService.Param
{
    public class AddBookParam
    {
        public int UserId { get; set; }
        /// <summary>
        /// 总资产
        /// </summary>

        public decimal Total { get; set; }
        /// <summary>
        /// 仓位
        /// </summary>

        public short Position { get; set; }
        /// <summary>
        /// 盈亏
        /// </summary>

        public decimal ProfitAndLoss { get; set; }
        /// <summary>
        /// 盈亏比
        /// </summary>

        public short ProfitAndLossRatio { get; set; }

        /// <summary>
        /// 热门题材
        /// </summary>

        public string PopularThemes { get; set; }
        /// <summary>
        /// 今日复盘
        /// </summary>

        public string TodayReview { get; set; }
        /// <summary>
        /// 明日计划
        /// </summary>


        public string TomorrowPlan { get; set; }

        /// <summary>
        /// 备注
        /// </summary>

        public string Notes { get; set; }
        /// <summary>
        /// 分享地址
        /// </summary>

        public string Uri { get; set; }

        /// <summary>
        /// 股票详情ID 雪花ID
        /// </summary>

        public long StockId { get; set; }
        

        public DateTime CreationTime { get; set; } = DateTime.Now;

        public DateTime ModifyTime { get; set; }
        public List<StockLst> StockLsts { get; set; }
    }
    public class EditBookParam
    {
        public long StockId { get; set; }
        /// <summary>
        /// 主键Id
        /// </summary>
        public int Id { get; set; }
        public int UserId { get; set; }
        /// <summary>
        /// 总资产
        /// </summary>

        public decimal Total { get; set; }
        /// <summary>
        /// 仓位
        /// </summary>

        public short Position { get; set; }
        /// <summary>
        /// 盈亏
        /// </summary>

        public decimal ProfitAndLoss { get; set; }
        /// <summary>
        /// 盈亏比
        /// </summary>

        public short ProfitAndLossRatio { get; set; }

        /// <summary>
        /// 热门题材
        /// </summary>

        public string PopularThemes { get; set; }
        /// <summary>
        /// 今日复盘
        /// </summary>

        public string TodayReview { get; set; }
        /// <summary>
        /// 明日计划
        /// </summary>


        public string TomorrowPlan { get; set; }

        /// <summary>
        /// 备注
        /// </summary>

        public string Notes { get; set; }
        /// <summary>
        /// 分享地址
        /// </summary>

        public string Uri { get; set; }
        public List<StockLst> StockLsts { get; set; }
    }

    public class SearchBookParam : PageParam
    {
        /// <summary>
        /// 平仓股票代码
        /// </summary>
        public string ClosingCode { get; set; }
        /// <summary>
        /// 股票代码
        /// </summary>
        public string StockCode { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }

        public int UserId { get; set; }
    }
}
